<?php
            if (count($data) > 0):
                $parentUrl = $this->module->id .'/' . Yii::app()->getController()->getId();
                    ?> 
                    <tr>
                        <td class="center">
                            <a href="<?php echo Yii::app()->createAbsoluteUrl($parentUrl . '/view', array('id' => $data['id'])); ?>">
                                <img src="<?php echo Yii::app()->baseUrl.'/timthumb.php?src='.Yii::app()->baseUrl .'/images/post/'. $data['cover_photo']?>&h=100&w=100" /> 
                            </a>
                        </td>
                        <td><?php echo $data['user']['first_name'] .' ' . $data['user']['last_name']?></td>
                        <td class="hidden-phone"><?php echo $data['title']?></td>
                        <td class="hidden-phone"><?php echo substr($data['description'],0,100)?>...</td>
                        <td class="hidden-phone"><?php echo $data['start_date']?></td>
                        <td class="hidden-phone"><?php echo $data['end_date']?></td>
                        <td class="hidden-phone"><?php echo $data['timer']?></td>
                        <td class="hidden-phone"><?php echo $data['street'] .', '. $data['city'] . ', '. $data['state'].', '. $data['zip']?></td>
                        <td class="hidden-phone"><?php echo date('Y/m/d', $data['created_date'])?></td>
                        <td class="hidden-phone"><?php if($data['updated_date']) echo date('Y/m/d', $data['updated_date'])?></td>
                        <td class="td-actions">
                            <div class="hidden-phone visible-desktop action-buttons">
                                <a class="green" href="<?php echo Yii::app()->createAbsoluteUrl($parentUrl . '/view', array('id' => $data['id'])); ?>">
                                    <i class="icon-zoom-in bigger-130"></i>
                                </a>
                                <a class="red" href="<?php echo Yii::app()->createAbsoluteUrl($parentUrl . '/delete', array('id' => $data['id'])); ?>">
                                    <i class="icon-trash bigger-130"></i>
                                </a>
                            </div>
                            <div class="hidden-desktop visible-phone">
                                <div class="inline position-relative">
                                    <button class="btn btn-minier btn-yellow dropdown-toggle" data-toggle="dropdown">
                                        <i class="icon-caret-down icon-only bigger-120"></i>
                                    </button>
                                    <ul class="dropdown-menu dropdown-icon-only dropdown-yellow pull-right dropdown-caret dropdown-close">
                                        <li>
                                            <a href="<?php echo Yii::app()->createAbsoluteUrl($parentUrl . '/view', array('id' => $data['id'])); ?>" class="tooltip-success" data-rel="tooltip" title="Edit">
                                                <span class="green">
                                                    <i class="icon-zoom-in bigger-120"></i>
                                                </span>
                                            </a>
                                        </li>
                                         <li>
                                            <a href="<?php echo Yii::app()->createAbsoluteUrl($parentUrl . '/delete', array('id' => $data['id'])); ?>" class="tooltip-info" data-rel="tooltip" title="Delete">
                                                <span class="blue">
                                                    <i class="icon-trash bigger-120"></i>
                                                </span>
                                            </a>
                                        </li>
                                    </ul>
                                </div>
                            </div>
                        </td>                 
                    </tr>
                <?php
            endif;
            ?>